﻿using SharedContracts.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TalentDesk.Contracts.Ef;
using TalentDesk.Contracts.ServiceContracts;
using TalentDesk.Mvc.HelperClasses;

namespace TalentDesk.Mvc.Models
{
    public class AttachmentProxy
    {

        public static List<Attachment> GetAttachmentsByProjectId(int p_iProjectId)
        {
            List<Attachment> result = null;
            new ProxyHelper<IAttachmentService>().Use(serviceProxy =>
            {
                result = serviceProxy.GetAttachmentsByProjectId(p_iProjectId);
            },
              EndpointConstants.BasicHttpBinding_IAttachmentService);

            return result;
        }




    }
}